import React, { Suspense, memo } from 'react'
import { renderRoutes } from 'react-router-config'
import { Router } from 'react-router-dom'
import history from './utils/history'
import { routes } from './router/routes'
export default memo(function App() {
  return (
    <div>
      <Suspense fallback="...loading">
        <Router history={history}>{renderRoutes(routes)}</Router>
      </Suspense>
    </div>
  )
})
